﻿import idv.ben.picasawebservice4flash.data.*;
import idv.ben.picasawebservice4flash.service.*;

class idv.ben.picasawebservice4flash.data.UserGPhoto{
	
	private var __user:String;
	private var __nickname:String;
	private var __thumbnail:String;
	private var __quotalimit:String;
	private var __quotacurrent:String;
	private var __maxPhotosPerAlbum:String;
	
	/**
	* 建構子
	*/
	function UserGPhoto(){
	}
	
	/**
	* 設定資料
	* @param paramName 由 http://picasaweb.google.com/data/feed/api/user/<i>userID</i>?kind=<i>kinds</i> 取回的 xml 中，&lt;feed&gt; 節點下的 &lt;gphoto:{param name}&gt; 節點的 {param name}。
	* @param paramValue 值
	*/
	public function applyParam(paramName:String, paramValue:String):Void{
		//trace("paramName=" + paramName + ", paramValue=" + paramValue);
		switch(paramName.toLowerCase()){
			case "user".toLowerCase():
			case "nickname".toLowerCase():
			case "thumbnail".toLowerCase():
			case "quotalimit".toLowerCase():
			case "quotacurrent".toLowerCase():
			case "maxPhotosPerAlbum".toLowerCase():
				this["__" + paramName] = paramValue;
		}
	}
	
	public function get user():String{return __user;}
	public function get nickname():String{return __nickname;}
	public function get thumbnail():String{return __thumbnail;}
	public function get quotalimit():String{return __quotalimit;}
	public function get quotacurrent():String{return __quotacurrent;}
	public function get maxPhotosPerAlbum():String{return __maxPhotosPerAlbum;}
}